var myDiv = document.getElementById('userimg');
var myDiv1 = document.getElementById('grxx_d');
var myDiv2 = document.getElementById('h_r_1');

myDiv.addEventListener('mouseover', function() {
    myDiv.classList.add('userimg_big');
    myDiv1.classList.remove('noshow');
});

myDiv1.addEventListener('mouseover', function() {
    myDiv.classList.add('userimg_big');
    myDiv1.classList.remove('noshow');
});

myDiv1.addEventListener('mouseout', function() {
    myDiv1.classList.add('noshow');
    myDiv.classList.remove('userimg_big');
});

myDiv2.addEventListener('mouseout', function() {
    myDiv1.classList.add('noshow');
    myDiv.classList.remove('userimg_big');
});

$(document).ready(function() {
    on();
    $("#grzx").click(function() {
        window.location.href = "/jump/goUserCI"; // 替换成你要跳转的 URL
    });
    $("#fbnr").click(function() {
        window.location.href = "/jump/goArticle"; // 替换成你要跳转的 URL
    });
});
function gomain() {
    window.location.href = "/jump/goMain"; // 替换成你要跳转的 URL
}
function gomsgbd() {
    window.location.href = "/jump/goMsgBd"; // 替换成你要跳转的 URL
}
function govideo() {
    window.location.href = "/jump/goVideo"; // 替换成你要跳转的 URL
}

function gouno() {
    window.location.href = "/jump/goUno"; // 替换成你要跳转的 URL
}
function goLookArticle() {
    window.location.href = "/jump/goLookArticle"; // 替换成你要跳转的 URL
}

function goWorld() {
    window.location.href = "/jump/goWorld"; // 替换成你要跳转的 URL
}
function goCardBox() {
    window.location.href = "/jump/goCardbox"; // 替换成你要跳转的 URL
}
function on() {
    var flag = $("#onflag").val();
    if (flag==0) {
        $("#gosy").addClass("on");
    }else if(flag==1){
        $("#golyb").addClass("on");
    }else if(flag==2){
        $("#govideo").addClass("on");
    }
}
